package com.example.rdemo.mapper;

import java.util.List;

import com.example.rdemo.entity.Shop;
import org.apache.ibatis.annotations.Mapper;

/**
 * shopMapper接口
 *
 * @author ruoyi
 * @date 2025-04-01
 */
@Mapper
public interface ShopMapper {
    //查询shop
    public Shop selectShopByCid(Long cid);

    //查询shop列表 不带一对多
    public List<Shop> selectShopList(Shop shop);
    //带一对多
    public List<Shop> selectShopGoodsList(Shop shop);

    //新增shop
    public int insertShop(Shop shop);

    //修改shop
    public int updateShop(Shop shop);

    //删除shop
    public int deleteShopByCid(Long cid);

    //批量删除shop @param cids 需要删除的数据主键集合@return 结果
    public int deleteShopByCids(Long[] cids);
}
